package com.situ.web.mapper;

import java.util.List;
import java.util.Map;

import com.situ.web.entity.Department;
import com.situ.web.entity.Role;
import com.situ.web.entity.User;

public interface IUserMapper {

	public Integer getTotalCount();

	public List<User> pageList(Map<String, Object> map);

	public List<Map<String, Object>> search(String searchName);

	public int deleteById(Integer id);

	public User selectById(int id);

	public int update(User user);

	public List<User> selectByName(String name);

	public int insert(User user);

	public List<Role> selectRole();

	public List<Department> selectDepartment();

}
